﻿///*
//**非诉详情
//*/
Chenxin.UI.ShowDetailNotLitigationPage = Chenxin.extend(Chenxin.UI.AddPageCommon,{
    actionUrl:"/service/logic/ShowDetailNotLitigation.ashx",
    createForm:function(){
        return new Chenxin.UI.ShowDetailNotLitigationForm({
            scope:this
        });
    }
});

Chenxin.UI.ShowDetailNotLitigationForm = Chenxin.extend(Chenxin.UI.AddFormCommon,{
    actionUrl: "/service/logic/ShowDetailNotLitigation.ashx",
    id: "ShowDetail_form",
	loadinfo: function() {
        var _this = this;
        if (!this.currentId) {
            alert("请先选择一条记录！");
            return false;
        }
        Chenxin.ajax({
            type: "get",
            dataType: "text",
            paramType: 'json',
            async: false,
            url: this.actionUrl,
            data: { op: 'getmodel', modelid: this.currentId },
            onSuccess: function(data, msg) {
                if (data) {
                    _this.currentInfo = data;
                }
            }
        });
        return true;
    },
	initForm:function() {
		_this = this;
		var recordId = Chenxin.Fn.getQueryString("RecordId");
		if(recordId == null || recordId.isBlank()) {
			alert('参数格式错误,加载失败！');
			return ;
		}
		_this.currentId = recordId;
		_this.loadinfo();
    },
    initEvent: function() {
        $('#aClose').live('click', function() {
            window.close();
        });
    },
    loadDefVal:function(){
		_this = this;
		if(_this.currentInfo != undefined)
        {
            Chenxin.Fn.BindData(_this.currentInfo);
        }
	}
});
getcity = true; //设置需要获取城市下拉框数据

$(document).ready(function() {
    var showdetailnotlitigationpage = new Chenxin.UI.ShowDetailNotLitigationPage();
});